﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using MvcMovie.Models;
using System.Configuration;

namespace MvcMovie.Controllers
{
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            //var cs = new TesteEntities().Connection.ConnectionString;
            //return View((object)cs);
            ViewBag.config = "TesteEntities: " + ConfigurationManager.ConnectionStrings["TesteEntities"];
            //ViewBag.config = ConfigurationManager.AppSettings["SQLSERVER_CONNECTION_STRING"];
            return View();
        }

        public ActionResult About()
        {
            ViewBag.Message = "Your quintessential app description page.";

            return View();
        }

        public ActionResult Contact()
        {
            ViewBag.Message = "Your quintessential contact page.";

            return View();
        }
    }
}
